using System.Linq;
using EnvTest.Models;
namespace EnvTest.Models
{
    public class MockProductRepository : IProductRepository
    {
        private static readonly Product[] DurmyData = new Product[]{
    new Product { Name = "Prod1" , Category = "cati", Price =100},
    new Product { Name = "Prod2" , Category = "cat1", Price = 100},
    new Product { Name ="Prod3", Category =  "cat2", Price =  100},
    new Product { Name ="prod4", Category =  "cat2" ,Price =  100},
    };

 

        public IQueryable<Product> products => DurmyData.AsQueryable();
    }
}